<!--#
 @version 0.3 (auto-set)
#-->
<!-- Table 'users' edit -->
<p align=center>
 <a href="?">&lt;&lt;&lt; <#LANG_BACK#></a>
</p>
<table border=0 align=center cellpadding=3>
<form action="?" method="post" enctype="multipart/form-data" name="frmEdit">
[#if OK#]
<tr>
 <td colspan=2 align=center>
  <font color="green"><#LANG_DATA_SAVED#></font>
 </td>
</tr>
[#endif OK#]
[#if ERR#]
<tr>
 <td colspan=2 align=center>
  <font color="red"><#LANG_FILLOUT_REQURED#></font>
 </td>
</tr>
[#endif ERR#]
[#if ID=""#]
<tr>
 <td colspan=2 align=center><b><#LANG_NEW_RECORD#></b></td>
</tr>
[#endif ID#]
<!-- USERNAME (varchar) -->
<tr>
 <td align=right>
 [#if ERR_USERNAME#]<b><font color="red">[#endif#]
 <#LANG_USERNAME#>:
 (*)
 </td>
 <td>
  <input type="text" name="username" value="[#USERNAME#]">
 </td>
</tr>

<tr>
 <td align=right>
 <#LANG_PASSWORD#> (<#LANG_OPTIONAL#>):
 </td>
 <td>
  <input type="text" name="password" value="[#PASSWORD#]">
 </td>
</tr>


<!-- NAME (varchar) -->
<tr>
 <td align=right>
 [#if ERR_NAME#]<b><font color="red">[#endif#]
 <#LANG_NAME#>:
 (*)
 </td>
 <td>
  <input type="text" name="name" value="[#NAME#]">
 </td>
</tr>
<!-- EMAIL (email) -->
<tr>
 <td align=right>
 [#if ERR_EMAIL#]<b><font color="red">[#endif#]
 <#LANG_EMAIL#>:
 (*)
 </td>
 <td>
  <input type="text" name="email" value="[#EMAIL#]">
 </td>
</tr>

<tr>
 <td align=right>
 <#LANG_SKYPE#>:
 </td>
 <td>
  <input type="text" name="skype" value="[#SKYPE#]">
 </td>
</tr>

<tr>
 <td align=right>
 <#LANG_MOBILE_PHONE#>:
 </td>
 <td>
  <input type="text" name="mobile" value="[#MOBILE#]">
 </td>
</tr>

<tr>
 <td align=right>
 <#LANG_PHOTO#>:
 </td>
 <td>
  [#if AVATAR!=""#]<img src="/cms/avatars/[#AVATAR#]" border="0" height="50"><br>[#endif#]
  <input type="file" name="avatar">
 </td>
</tr>


<tr>
 <td align=right>
 &nbsp;
 </td>
 <td>
  <label><input type="checkbox" name="is_default" value="1"[#if IS_DEFAULT="1"#] checked[#endif#]> <#LANG_DEFAULT_USER#></label>
 </td>
</tr>

<tr>
 <td align=right>
 &nbsp;
 </td>
 <td>
  <label><input type="checkbox" name="is_admin" value="1"[#if IS_ADMIN="1"#] checked[#endif#]> <#LANG_IS_ADMIN#></label>
 </td>
</tr>



<tr>
 <td colspan=2 align=center>
 [#if ID!=""#]
 <input type="submit" name="subm" value="<#LANG_SUBMIT#>">
 [#else ID#]
 <input type="submit" name="subm" value="<#LANG_ADD#>">
 [#endif ID#]
 &nbsp;
 <a href="?"><#LANG_CANCEL#></a>
 </td>
</tr>
<input type="hidden" name="id" value="<#ID#>">
<input type="hidden" name="view_mode" value="<#VIEW_MODE#>">
<input type="hidden" name="edit_mode" value="<#EDIT_MODE#>">
<input type="hidden" name="mode" value="update">
</form>
</table>
